<template>
	<view>
		<u-tabbar v-model="current" :list="tabbarList" :mid-button="false" :change="change()" icon-size="45" active-color="#e93b3d"></u-tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tabbarList: [{
						iconPath: "home",
						selectedIconPath: "home-fill",
						text: '首页',
						customIcon: false,
						pagePath:'/pages/index/index'
					},
					{
						iconPath: "grid",
						selectedIconPath: "grid-fill",
						text: '分类',
						customIcon: false,
						pagePath:'/pages/sort/sort'
					},
					{
						iconPath: "shopping-cart",
						selectedIconPath: "shopping-cart-fill",
						text: '购物车',
						customIcon: false,
						pagePath:'/pages/cart/cart'
					},
					{
						iconPath: "account",
						selectedIconPath: "account-fill",
						text: '我的',
						customIcon: false,
						pagePath:'/pages/me/me'
					},
				],
				current: 0
			};
		},
		methods: {
			change() {
				// console.log(this.current)
				// if (this.current == 1) {
				// 	uni.navigateTo({
				// 		url: "/pages/sort/sort",
				// 	});
				// }
			}
		}
	}
</script>

<style>

</style>
